@extends('admin')

@section('content')

    <div class="nav">
        <ul class="cc">
            <li class="current">
                <a href="{{url('admin/ads/posi')}}">广告位管理</a>
            </li>
        </ul>
    </div>

    <p class="mb10">
        <a href="{{url('admin/ads/posiupdate')}}" class="btn J_dialog" title="新增广告位"><span class="add"></span>新增广告位</a>
    </p>

    <div class="table_list">
        <div id="data_list">
            <table class="items">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>广告位</th>
                    <th>标识</th>
                    <th>宽度</th>
                    <th>高度</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach ($list as $item)
                    <tr>
                        <td>{{$item->id}}</td>
                        <td>{{$item->name}}</td>
                        <td>{{$item->mark}}</td>
                        <td>{{$item->width}}</td>
                        <td>{{$item->height}}</td>
                        <td>
                            <a href="{{url('admin/ads/posiupdate/'.$item->id)}}" title="编辑{{$item->name}}" class="mr10 J_dialog">[编辑]</a>
                            <a href="{{url('admin/ads/posidelete/'.$item->id)}}" class="mr10 J_ajax_del">[删除]</a>
                        </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

        <div class="summary">
            共有 {{$list->total()}} 条数据
        </div>
        @if ($list->hasPages())
            <div class="pager">
                <!--
                <span style="float:left; margin-right:10px;">
                    转至<input type="text" id="goToPage" class="input" style="width:30px; text-align:center;">页
                    <span onclick="goto();" class="btn btn_submit">跳转</span>
                </span>
                -->
                {!! $list->appends($appends)->render() !!}
            </div>
        @endif
    </div>

@stop